//
//  HMPhotoViewModel.swift
//  WeiBo
//
//  Created by apple on 16/6/27.
//  Copyright © 2016年 itheima. All rights reserved.
//

import UIKit

class HMPhotoViewModel: NSObject {

    var model: HMPhotoModel?
    
    init(model: HMPhotoModel) {
        
        self.model = model
        
        super.init()
        
    }
    
    
    var imageURL: NSURL? {
        
        if let urlString = model?.thumbnail_pic {
            
            return NSURL(string: urlString)
        } else {
            
            return NSURL()
        }
        
        
        
        
    }
}
